//
//  MainTabBarController.swift
//  LoveFeng
//
//  Created by 李文静 on 16/3/24.
//  Copyright © 2016年 李文静. All rights reserved.
//

import UIKit

class MainTabBarController: UITabBarController {
    
    private var fristLoadMainTabBarController: Bool = true
    private var adImageView: UIImageView?
    
    var adImage: UIImage?{
        didSet{
            weak var tmpSelf = self
            adImageView = UIImageView(frame: ScreenBounds)
            adImageView!.image = adImage!
            self.view.addSubview(adImageView!)
            
            UIImageView.animateWithDuration(2.0, animations: { 
                tmpSelf!.adImageView!.transform = CGAffineTransformMakeScale(1.2, 1.2)
                tmpSelf!.adImageView!.alpha = 0
                }) { (finsch) in
                    tmpSelf!.adImageView!.removeFromSuperview()
                    tmpSelf!.adImageView = nil
            }
        }
    }
    override func viewDidLoad(){
        super.viewDidLoad()
        
    }
    
    private func buildMainTabBarChildViewController(){
        
    }
    
    private func tabBarControllerAddChildViewController(childView: UIViewController, title: String, imageName: String,selectedImageName: String, tag: Int){
        
    }
    
}
